{% extends 'base.html' %}
{% block title %}Word listing{% endblock %}

{% block content %}
<h3>Word listing</h3>
<a href="{% url mywords.views.add_word %}">Add a New Word</a>

<ul class="list">
  {% for word in object_list %}
    <li >
      <a href="{% url mywords.views.show_word key=word.key %}">{{ word.word }}</a>
      <a href="{% url mywords.views.edit_word key=word.key %}">Edit</a>
      <a href="{% url mywords.views.delete_word key=word.key %}">Delete</a>
    </li>
  {% endfor %}
</ul>

<div>
  {% if has_previous %}
    <a href="{% url mywords.views.list_words %}?page={{ previous }}">&lt;-previous</a>
  {% endif %}
  {% if has_next %}
    <a href="{% url mywords.views.list_words %}?page={{ next }}">next-&gt;</a>
  {% endif %}
</div>
{% endblock %}
